// Copyright (C) joyinter
// All rights reserved.
// 
// Author : Jiang Li
// Date   : 2004-9-23

#ifndef __USERDETAIL_H_CLIENT_MAIN__
#define __USERDETAIL_H_CLIENT_MAIN__

#pragma once
//add by deng
//##ModelId=44C4B5D902AF
enum VirtualIPDef
{
	//##ModelId=44C4B5D902B1
    VIPDEF_B1 = 10,
	//##ModelId=44C4B5D902B2
    VIPDEF_B2 = 81,
	//##ModelId=44C4B5D902BF
    VIPDEF_B3 = 65,
};

#include <common\ui\wnd.h>

class CJoyUserItem;

//##ModelId=44C4B5D902CE
class CJoyUserDetail :
    public CJoyWnd
{
	DECLARE_DYNAMIC(CJoyUserDetail)
protected:
	//##ModelId=44C4B5D902DF
    CStringW    m_nickname;
	//##ModelId=44C4B5D902E4
    CStringW    m_userTitle;
	//##ModelId=44C4B5D902E8
    UINT        m_userId;
	//##ModelId=44C4B5D902EE
    UINT        m_VIP;
	//##ModelId=44C4B5D902EF
    UINT        m_level;
	//##ModelId=44C4B5D902FD
    UINT        m_score;
	//##ModelId=44C4B5D902FE
    UINT        m_credit;
	//##ModelId=44C4B5D902FF
    UINT        m_winTimes;
	//##ModelId=44C4B5D9030D
    UINT        m_lossTimes;
	//##ModelId=44C4B5D9030E
    void DrawGridBack(Graphics& graph, const Rect& r, Brush& bright, Brush& shadow, Brush& back, int edgeSize = 1);
	//##ModelId=44C4B5D90320
    void DrawGridText(Graphics& graph, const CStringW& strText, Brush& txBrush, Font& f, StringFormat& sf, const Rect& r, Brush& bright, Brush& shadow, Brush& back, int edgeSize = 1);
	//##ModelId=44C4B5D9033F
    virtual void CM_Draw(Graphics& graph);
public:
	//##ModelId=44C4B5D9034B
    CJoyUserDetail(void);
	//##ModelId=44C4B5D9034D
    virtual ~CJoyUserDetail(void);

	//##ModelId=44C4B5D90350
    void SetUserItem(CJoyUserItem* pItem);

public:
    DECLARE_MESSAGE_MAP()
	//##ModelId=44C4B5D9035B
    afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
};

#endif  // __USERDETAIL_H_CLIENT_MAIN__
